3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to dispose of the memory occupied by a bitmap and to determine the size of the memory occupied by a bitmap.
You can use the Q3Bitmap_Empty function to release the memory occupied by a bitmap that was allocated by a previous call to some QuickDraw 3D routine.
TQ3Status Q3Bitmap_Empty (TQ3Bitmap *bitmap);
The Q3Bitmap_Empty function releases the memory occupied by the bitmap pointed to by the bitmap parameter; that memory must have been allocated by a previous call to some QuickDraw 3D routine (for example, Q3Marker_GetBitmap ). You should not call Q3Bitmap_Empty to deallocate bitmaps that you allocated yourself.
You can use the Q3Bitmap_GetImageSize function to determine how much memory is occupied by a bitmap of a particular size.
unsigned long Q3Bitmap_GetImageSize (
unsigned long width,
unsigned long height);
Previous | QD3D Book | Overview | Chapter Contents | Next |